package com.elot.dto;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import org.springframework.stereotype.Component;

import com.google.appengine.api.datastore.Key;

@Component
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class ReviewDto {

	private Key id;
	
	private UserDto userReview;
	private UserDto userComment;
	
	private Integer grade;
	private String comment;
	private String reply;
	
	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	public Key getId() {
		return id;
	}
	public void setId(Key id) {
		this.id = id;
	}
	
	public ReviewDto() {
	}
	
	@Persistent
	public UserDto getUserReview() {
		return userReview;
	}
	public void setUserReview(UserDto userReview) {
		this.userReview = userReview;
	}
	@Persistent
	public UserDto getUserComment() {
		return userComment;
	}
	public void setUserComment(UserDto userComment) {
		this.userComment = userComment;
	}
	@Persistent
	public Integer getGrade() {
		return grade;
	}
	public void setGrade(Integer grade) {
		this.grade = grade;
	}
	@Persistent
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}
	@Persistent
	public String getReply() {
		return reply;
	}
	public void setReply(String reply) {
		this.reply = reply;
	}
	
}
